//
//  ALBodyCollectionViewCell.m
//  阿里星球-音乐界面
//
//  Created by Mars_ZXB on 16/8/13.
//  Copyright © 2016年 BAT3. All rights reserved.
//
#import "ALBodyCollectionViewCell.h"
#import "ALContentData.h"
#import "UIImageView+WebCache.h"

@interface ALBodyCollectionViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *descLabel;

@end


@implementation ALBodyCollectionViewCell

- (void)setModel:(ALContentData *)model
{
    _model = model;
    [_imageView sd_setImageWithURL:[NSURL URLWithString:model.picUrl] placeholderImage:[UIImage imageNamed:@"placeholder"]];
    _nameLabel.text = model.name;
    _descLabel.text = model.desc;
}


@end
